package com.lin.server;

import com.lin.dataobject.Brand;
import com.lin.dto.ComboboxDTO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * Created by MYQ on 2017/10/28.
 */
public interface BrandService {
    Brand findOne(Integer id);

    List<Brand> findAll(String name,String company, String startTime, String endTime);
    Page<Brand> findAll(String name,String company, String startTime, String endTime, Pageable pageable);


    Brand save(Brand brand);

    void del(Brand brand);

    Long getSize(String name,String company, String startTime, String endTime);

    List<Brand> findAll();
}
